package yns.springboot.guide.demo.configure.data.mongodb;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MongoClientConfigure {

	@Value("${mongoClient.uri:mongodb://localhost:27017}")
	private String uri;
	
	@Value("${mongoClient.database}")
	private String database;	
	
	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getDatabase() {
		return database;
	}

	public void setDatabase(String database) {
		this.database = database;
	}	
}
